package com.example.eurekaclient.common;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author ： yy
 * @date ：Created in 19-8-21 下午2:07
 * @description：
 * @modified By：
 * @version: $
 */
@FeignClient(name = "SHOP-SERVER")
@Component
public interface HelloRemote {
    @GetMapping(value = "/hello")
    String hello(@RequestParam(value = "name")String name);
}
